Kill AssDialogue::SetMarginString
It's no longer used anywhere.
This commit is contained in:
parent
df73591a54
commit
bb83193253
2 changed files with 0 additions and 11 deletions
|
@ -269,11 +269,6 @@ void AssDialogue::UpdateText(boost::ptr_vector<AssDialogueBlock>& blocks) {
|
|||
Text = join(blocks | transformed(get_text), "");
|
||||
}
|
||||
|
||||
void AssDialogue::SetMarginString(std::string const& origvalue, int which) {
|
||||
if (which < 0 || which > 2) throw InvalidMarginIdError();
|
||||
Margin[which] = mid<int>(0, atoi(origvalue.c_str()), 9999);
|
||||
}
|
||||
|
||||
std::string AssDialogue::GetMarginString(int which) const {
|
||||
if (which < 0 || which > 2) throw InvalidMarginIdError();
|
||||
return std::to_string(Margin[which]);
|
||||
|
|
|
@ -169,12 +169,6 @@ public:
|
|||
void UpdateText(boost::ptr_vector<AssDialogueBlock>& blocks);
|
||||
const std::string GetEntryData() const override;
|
||||
|
||||
template<int which>
|
||||
void SetMarginString(std::string const& value) { SetMarginString(value, which);}
|
||||
/// @brief Set a margin
|
||||
/// @param value New value of the margin
|
||||
/// @param which 0 = left, 1 = right, 2 = vertical
|
||||
void SetMarginString(std::string const& value, int which);
|
||||
/// @brief Get a margin
|
||||
/// @param which 0 = left, 1 = right, 2 = vertical
|
||||
std::string GetMarginString(int which) const;
|
||||
|
|
Loading…
Reference in a new issue