From a63d4ba12a83b6c6cf6e6cd17d4076d0181b056b Mon Sep 17 00:00:00 2001 From: Enrico Zini Date: Thu, 10 Sep 2015 13:06:09 +0200 Subject: Cleanup of old comments --- ept/debtags/coll/TextFormat.cc | 22 ---------------------- ept/debtags/coll/fast.cc | 2 +- ept/debtags/coll/fast.h | 14 +------------- ept/debtags/debtags.cc | 2 +- 4 files changed, 3 insertions(+), 37 deletions(-) diff --git a/ept/debtags/coll/TextFormat.cc b/ept/debtags/coll/TextFormat.cc index 98c94f8..1592289 100644 --- a/ept/debtags/coll/TextFormat.cc +++ b/ept/debtags/coll/TextFormat.cc @@ -163,28 +163,6 @@ int parseElement(FILE* in, const std::string& pathname, string& item) return EOF; } -static void printTagset(const std::set& ts, FILE* out) -{ - for (std::set::const_iterator i = ts.begin(); - i != ts.end(); i++) - if (i == ts.begin()) - { - if (fprintf(out, "%s", i->c_str()) < 0) - throw wibble::exception::System("writing tagset"); - } - else - { - if (fprintf(out, ", %s", i->c_str()) < 0) - throw wibble::exception::System("writing tagset"); - } -} - -inline static void outString(const std::string& str, FILE* out, const char* what) -{ - if (fwrite(str.data(), str.size(), 1, out) != 1) - throw wibble::exception::System(string("writing ") + what); -} - // item1, item2, item3: tag1, tag2, tag3 diff --git a/ept/debtags/coll/fast.cc b/ept/debtags/coll/fast.cc index 9032bf6..47bbf67 100644 --- a/ept/debtags/coll/fast.cc +++ b/ept/debtags/coll/fast.cc @@ -1,7 +1,7 @@ /* * Fast index for tag data * - * Copyright (C) 2005,2006 Enrico Zini + * Copyright (C) 2005--2015 Enrico Zini * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/ept/debtags/coll/fast.h b/ept/debtags/coll/fast.h index 747cefc..6cc34ff 100644 --- a/ept/debtags/coll/fast.h +++ b/ept/debtags/coll/fast.h @@ -6,7 +6,7 @@ */ /* - * Copyright (C) 2005,2006 Enrico Zini + * Copyright (C) 2005--2015 Enrico Zini * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,14 +41,6 @@ protected: std::map> items; std::map> tags; -#if 0 - virtual void consumeItem(const std::string& item, const std::set& tags); - virtual void consumeItems(const std::set& items, const std::set& tags); - - virtual std::set getItemsHavingTag(const std::string& tag) const; - virtual std::set getTagsOfItem(const std::string& item) const; -#endif - public: typedef std::map>::const_iterator const_iterator; typedef std::map>::iterator iterator; @@ -94,10 +86,6 @@ public: unsigned int itemCount() const { return items.size(); } unsigned int tagCount() const { return tags.size(); } -#if 0 - void output(Consumer& consumer) const; -#endif - // tag1 implies tag2 if the itemset of tag1 is a subset of the itemset of // tag2 std::set getTagsImplying(const std::string& tag) const; diff --git a/ept/debtags/debtags.cc b/ept/debtags/debtags.cc index 2fde09b..9aed835 100644 --- a/ept/debtags/debtags.cc +++ b/ept/debtags/debtags.cc @@ -6,7 +6,7 @@ /* * System tag database * - * Copyright (C) 2003-2008 Enrico Zini + * Copyright (C) 2003-2015 Enrico Zini * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public -- cgit v1.2.3