remove deprecated code and debug code

This commit is contained in:
Jinhao
2019-02-15 06:27:17 +08:00
parent 9f1d015355
commit bbc39906c0
16 changed files with 28 additions and 614 deletions

View File

@@ -5,7 +5,6 @@
#include <algorithm>
#include <vector>
#include <iostream> //debug
namespace nana
{
namespace detail
@@ -179,13 +178,7 @@ namespace nana
auto name = find_kde_theme_name();
if(name.empty())
{
name = find_gnome_theme_name();
std::cout<<"GNOME:"<<name<<std::endl;
return find_gnome_theme_name();
}
std::cout<<"KDE:"<<name<<std::endl;
return name;
}
@@ -294,13 +287,6 @@ namespace nana
std::vector<std::string> directories_;
};
void test()
{
theme thm;
auto png = thm.icon("folder", 30);
std::cout<<"Icon Theme="<<png<<std::endl;
}
theme::theme():
path_("/usr/share/icons/"),
ifs_("/usr/share/icons/default/index.theme")