Commit MetaInfo

Revision973920208ed80189fe9795ac097630b314ea3a12 (tree)
Time2010-02-12 22:26:22
Authornogu <nogu@user...>
Commiternogu

Log Message

Remove Access::init()

Access::init() is called from the constructor of Access class.

Change Summary

Incremental Difference

--- a/src/libkita/access.cpp
+++ b/src/libkita/access.cpp
@@ -34,21 +34,12 @@
3434 using namespace Kita;
3535
3636
37-Access::Access(const KUrl& datUrl) : m_datUrl(datUrl), m_currentJob(0)
37+Access::Access(const KUrl& datUrl)
38+: m_datUrl(datUrl), m_currentJob(0), m_header("HTTP/1.1 200 ") /* dummy */,
39+ m_dataSize(0), m_readNum(0)
3840 {
39- init();
40-}
41-
42-/* public */
43-void Access::init()
44-{
45- m_readNum = 0;
46- m_lastLine.clear();
4741 BoardDatabase db(m_datUrl);
4842 m_bbstype = db.type();
49- m_header = "HTTP/1.1 200 "; /* dummy header */
50- m_dataSize = 0;
51- m_threadData.clear();
5243 }
5344
5445 /* read data from cache, then emit data to DatInfo. */ /* public */
--- a/src/libkita/access.h
+++ b/src/libkita/access.h
@@ -35,7 +35,6 @@ namespace Kita
3535 Access(const KUrl& datUrl);
3636 virtual ~Access() {};
3737
38- void init();
3938 QString get();
4039 void killJob();
4140 void stopJob();
Show on old repository browser