[pan2: 99/268] removed debug lines



commit 784686efc48be65fbcf4d4e547f8f1137fa8d7ac
Author: Heinrich Mueller <sphemuel stud informatik uni-erlangen de>
Date:   Thu Jun 30 23:47:39 2011 +0200

    removed debug lines

 pan/tasks/task-upload.cc |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/pan/tasks/task-upload.cc b/pan/tasks/task-upload.cc
index f155177..ee7e254 100644
--- a/pan/tasks/task-upload.cc
+++ b/pan/tasks/task-upload.cc
@@ -124,10 +124,9 @@ TaskUpload :: update_work (NNTP* checkin_pending)
 {
 
   int working(0);
-  Needed n;
   foreach (needed_t, _needed, nit)
   {
-    n = nit->second;
+    Needed& n (nit->second);
     if (n.nntp && n.nntp!=checkin_pending)
       ++working;
   }
@@ -144,12 +143,6 @@ TaskUpload :: update_work (NNTP* checkin_pending)
   else if ((_encoder_has_run && !_needed.empty()))
   {
     _state.set_need_nntp(_server);
-    std::string data;
-    _cache.get_data(data,n.message_id.c_str());
-//    prepend_headers(_msg,&n, data);
-    std::ofstream dbg("/home/imhotep/dbg",std::ios::out);
-    dbg<<StringView(data);
-
   }
   else if (_needed.empty())
   {
@@ -211,9 +204,6 @@ TaskUpload :: use_nntp (NNTP * nntp)
     std::string data;
     _cache.get_data(data,needed->message_id.c_str());
     prepend_headers(_msg,needed, data);
-    std::ofstream dbg("/home/imhotep/dbg",std::ios::out);
-    dbg<<StringView(data);
-    dbg.close();
     nntp->post(StringView(data), this);
     update_work ();
   }
@@ -412,6 +402,6 @@ TaskUpload :: ~TaskUpload ()
       _encoder->cancel_silently();
 
   g_object_unref (G_OBJECT(_msg));
-//  _cache.release(_mids);
-//  _cache.resize();
+  _cache.release(_mids);
+  _cache.resize();
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]