[pan2] removed unused files
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] removed unused files
- Date: Sat, 22 Dec 2012 17:26:09 +0000 (UTC)
commit c7898e06d2524323d27f7ad64b82a4aca60035c2
Author: Heinrich MÃller <henmull src gnome org>
Date: Sat Dec 22 18:07:05 2012 +0100
removed unused files
pan/data-impl/data-impl.h | 2 ++
pan/data-impl/headers.cc | 18 ++++++++++++++++++
pan/data/data.h | 2 ++
pan/usenet-utils/Makefile.am | 6 ++----
4 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/pan/data-impl/data-impl.h b/pan/data-impl/data-impl.h
index d968b6c..6145a83 100644
--- a/pan/data-impl/data-impl.h
+++ b/pan/data-impl/data-impl.h
@@ -570,6 +570,8 @@ namespace pan
virtual void rescore_articles (const Quark& group, const quarks_t mids);
+ virtual void rescore_group_articles (const Quark& group);
+
virtual void rescore ();
private:
diff --git a/pan/data-impl/headers.cc b/pan/data-impl/headers.cc
index a6227eb..96c6332 100644
--- a/pan/data-impl/headers.cc
+++ b/pan/data-impl/headers.cc
@@ -969,6 +969,24 @@ DataImpl :: rescore_articles (const Quark& group, const quarks_t mids)
}
void
+DataImpl :: rescore_group_articles (const Quark& group)
+{
+
+ GroupHeaders * gh (get_group_headers (group));
+ if (!gh) // group isn't loaded
+ return;
+
+ ArticleFilter::sections_t sections;
+ _scorefile.get_matching_sections (group.to_view(), sections);
+ foreach (nodes_v, gh->_nodes, it) {
+ if ((*it)->_article) {
+ Article& a (*(*it)->_article);
+ a.score = _article_filter.score_article (*this, sections, group, a);
+ }
+ }
+}
+
+void
DataImpl :: rescore ()
{
//std::cerr << LINE_ID << " rescoring... " << std::endl;
diff --git a/pan/data/data.h b/pan/data/data.h
index 2f93bed..8cdd42c 100644
--- a/pan/data/data.h
+++ b/pan/data/data.h
@@ -641,6 +641,8 @@ namespace pan
virtual void rescore_articles (const Quark& group, const quarks_t mids) = 0;
+ virtual void rescore_group_articles (const Quark& group) = 0;
+
virtual void rescore () = 0;
/*****************************************************************
diff --git a/pan/usenet-utils/Makefile.am b/pan/usenet-utils/Makefile.am
index f142d1c..d481fac 100644
--- a/pan/usenet-utils/Makefile.am
+++ b/pan/usenet-utils/Makefile.am
@@ -15,8 +15,7 @@ libusenetutils_a_SOURCES = \
text-massager.cc \
url-find.cc \
blowfish.cc \
- gpg.cc \
- xzver.cc
+ gpg.cc
noinst_HEADERS = \
defgroup.h \
@@ -33,8 +32,7 @@ noinst_HEADERS = \
blowfish.h \
blowfish_cyphers.h \
gpg.h \
- MersenneTwister.h \
- xzver.h
+ MersenneTwister.h
#noinst_PROGRAMS = \
# gnksa-test \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]