diff options
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/serverinfo.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp index 2f73d96beb..8b6707540e 100644 --- a/rbutil/rbutilqt/base/serverinfo.cpp +++ b/rbutil/rbutilqt/base/serverinfo.cpp | |||
@@ -42,9 +42,6 @@ const static struct { | |||
42 | { ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" }, | 42 | { ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" }, |
43 | { ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" }, | 43 | { ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" }, |
44 | { ServerInfo::CurStatus, "status/:platform:", "-1" }, | 44 | { ServerInfo::CurStatus, "status/:platform:", "-1" }, |
45 | { ServerInfo::ManualPdfUrl, "", "" }, | ||
46 | { ServerInfo::ManualHtmlUrl, "", "" }, | ||
47 | { ServerInfo::ManualZipUrl, "", "" }, | ||
48 | { ServerInfo::BleedingRevision, "bleeding/rev", "" }, | 45 | { ServerInfo::BleedingRevision, "bleeding/rev", "" }, |
49 | { ServerInfo::BleedingDate, "bleeding/timestamp", "" }, | 46 | { ServerInfo::BleedingDate, "bleeding/timestamp", "" }, |
50 | { ServerInfo::CurDevelUrl, "", "" }, | 47 | { ServerInfo::CurDevelUrl, "", "" }, |
@@ -111,23 +108,6 @@ QVariant ServerInfo::platformValue(enum ServerInfos info, QString platform) | |||
111 | SystemInfo::BuildCurrent).toString() | 108 | SystemInfo::BuildCurrent).toString() |
112 | .replace("%MODEL%", platform); | 109 | .replace("%MODEL%", platform); |
113 | break; | 110 | break; |
114 | case ManualPdfUrl: | ||
115 | case ManualZipUrl: | ||
116 | case ManualHtmlUrl: | ||
117 | { | ||
118 | QString url = SystemInfo::value(SystemInfo::ManualUrl).toString(); | ||
119 | QString modelman = SystemInfo::platformValue( | ||
120 | SystemInfo::Manual, platform).toString(); | ||
121 | url.replace("%MODEL%", modelman.isEmpty() ? platform : modelman); | ||
122 | if(info == ManualPdfUrl) | ||
123 | url.replace("%FORMAT%", ".pdf"); | ||
124 | else if(info == ManualZipUrl) | ||
125 | url.replace("%FORMAT%", "-html.zip"); | ||
126 | else if(info == ManualHtmlUrl) | ||
127 | url.replace("%FORMAT%", "/rockbox-build.html"); | ||
128 | value = url; | ||
129 | } | ||
130 | break; | ||
131 | case BleedingDate: | 111 | case BleedingDate: |
132 | // TODO: get rid of this, it's location specific. | 112 | // TODO: get rid of this, it's location specific. |
133 | value = QDateTime::fromString(value.toString(), | 113 | value = QDateTime::fromString(value.toString(), |