Code clean up

This commit is contained in:
Christophe Dumez
2012-02-16 21:04:02 +02:00
parent 16071ec266
commit de4559659d
2 changed files with 10 additions and 9 deletions

View File

@@ -92,14 +92,6 @@ public:
return tmp.join("/");
}
static inline libtorrent::sha1_hash QStringToSha1(const QString& s) {
std::string str(s.toLocal8Bit().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(".");