Skip to content

Commit fbea8f1

Browse files
committed
Remove no longer used code
Has been moved into linuxdeploy's code base.
1 parent 4b98b6c commit fbea8f1

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

include/linuxdeploy/desktopfile/desktopfile.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ namespace linuxdeploy {
104104
// returns true if an existing key was overwritten, false otherwise
105105
bool setEntry(const std::string& section, DesktopFileEntry&& entry);
106106

107-
// create common application entries in desktop file
108-
// returns false if one of the keys exists and was left unmodified
109-
// bool addDefaultKeys(const std::string& executableFileName);
110-
111107
// validate desktop file
112108
bool validate() const;
113109
};

src/desktopfile.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -164,36 +164,6 @@ namespace linuxdeploy {
164164
return true;
165165
}
166166

167-
// bool DesktopFile::addDefaultKeys(const std::string& executableFileName) {
168-
// ldLog() << "Adding default values to desktop file:" << path() << std::endl;
169-
//
170-
// auto rv = true;
171-
//
172-
// auto setDefault = [&rv, this](const std::string& section, const std::string& key, const std::string& value) {
173-
// if (entryExists(section, key)) {
174-
// DesktopFileEntry entry;
175-
//
176-
// // this should never return false
177-
// auto entryExists = getEntry(section, key, entry);
178-
// assert(entryExists);
179-
//
180-
// ldLog() << LD_WARNING << "Key exists, not modified:" << key << "(current value:" << entry.value() << LD_NO_SPACE << ")" << std::endl;
181-
// rv = false;
182-
// } else {
183-
// auto entryOverwritten = setEntry(section, DesktopFileEntry(key, value));
184-
// assert(!entryOverwritten);
185-
// }
186-
// };
187-
//
188-
// setDefault("Desktop Entry", "Name", executableFileName);
189-
// setDefault("Desktop Entry", "Exec", executableFileName);
190-
// setDefault("Desktop Entry", "Icon", executableFileName);
191-
// setDefault("Desktop Entry", "Type", "Application");
192-
// setDefault("Desktop Entry", "Categories", "Utility;");
193-
//
194-
// return rv;
195-
// }
196-
197167
bool DesktopFile::validate() const {
198168
// FIXME: call desktop-file-validate
199169
return true;

0 commit comments

Comments
 (0)