mirror of https://github.com/odrling/Aegisub
Get rid of a few unused variable warnings.
Originally committed to SVN as r5333.
This commit is contained in:
parent
bc002d749c
commit
7638375282
|
@ -46,7 +46,7 @@ const std::string Path::Get(const char *name) {
|
||||||
std::string path;
|
std::string path;
|
||||||
try {
|
try {
|
||||||
path = std::string(opt->Get(name)->GetString());
|
path = std::string(opt->Get(name)->GetString());
|
||||||
} catch (OptionErrorNotFound& e) {
|
} catch (OptionErrorNotFound&) {
|
||||||
throw PathErrorNotFound("Invalid path key");
|
throw PathErrorNotFound("Invalid path key");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ void Path::Set(const char *name, const std::string &path) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
opt->Get(name)->SetString(set);
|
opt->Get(name)->SetString(set);
|
||||||
} catch (OptionErrorNotFound& e) {
|
} catch (OptionErrorNotFound&) {
|
||||||
throw PathErrorNotFound("Invalid path key");
|
throw PathErrorNotFound("Invalid path key");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ void Path::Decode(std::string &path) {
|
||||||
|
|
||||||
throw PathErrorInvalid("Invalid cookie used");
|
throw PathErrorInvalid("Invalid cookie used");
|
||||||
|
|
||||||
} catch (OptionErrorNotFound& e) {
|
} catch (OptionErrorNotFound&) {
|
||||||
throw PathErrorInternal("Failed to find key in Decode");
|
throw PathErrorInternal("Failed to find key in Decode");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue