Switch to side-by-side view

--- a/src/bincimapmime/mime-printbody.cc
+++ b/src/bincimapmime/mime-printbody.cc
@@ -23,52 +23,14 @@
  *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
  *  --------------------------------------------------------------------
  */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
 
 #include "mime.h"
 #include "mime-utils.h"
 #include "mime-inputsource.h"
 
-#include "convert.h"
-#include "iodevice.h"
-#include "iofactory.h"
+#include <string>
 
-#include <string>
-#include <vector>
-#include <map>
-#include <exception>
-#include <iostream>
-
-#include <string.h>
-#include <ctype.h>
-#include <stdio.h>
-#include <errno.h>
-
-#ifndef NO_NAMESPACES
 using namespace ::std;
-#endif /* NO_NAMESPACES */
-
-//------------------------------------------------------------------------
-void Binc::MimePart::printBody(IODevice &output,
-			       unsigned int startoffset,
-			       unsigned int length) const
-{
-  mimeSource->reset();
-  mimeSource->seek(bodystartoffsetcrlf + startoffset);
-
-  if (startoffset + length > bodylength)
-    length = bodylength - startoffset;
-
-  char c = '\0';
-  for (unsigned int i = 0; i < length; ++i) {
-    if (!mimeSource->getChar(&c))
-      break;
-
-    output << (char)c;
-  }
-}
 
 void Binc::MimePart::getBody(string &s,
 			     unsigned int startoffset,