Code clean up

This commit is contained in:
Christophe Dumez
2012-03-17 17:23:45 +02:00
parent 84dbb76331
commit eb7a844099
2 changed files with 2 additions and 10 deletions

View File

@@ -90,14 +90,6 @@ public:
return tmp.join("/");
}
static inline libtorrent::sha1_hash QStringToSha1(const QString& s) {
std::string str(s.toAscii().data());
std::istringstream i(str);
libtorrent::sha1_hash x;
i>>x;
return x;
}
static inline QString file_extension(const QString &filename) {
QString extension;
int point_index = filename.lastIndexOf(".");