Skip to content

Commit 85ae53c

Browse files
committed
Fix MSVC compiler warning
reg.: 'formatInstrumentTitleOnScore': unreferenced function with internal linkage has been removed (C4505)
1 parent eacb879 commit 85ae53c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/notation/internal/notationparts.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,6 @@ using namespace mu::engraving;
4848

4949
static const mu::engraving::Fraction DEFAULT_TICK = mu::engraving::Fraction(0, 1);
5050

51-
static String formatInstrumentTitleOnScore(const String& instrumentName, const Trait& trait)
52-
{
53-
// Comments for translators start with //:
54-
55-
if (trait.type == TraitType::Transposition && !trait.isHiddenOnScore) {
56-
//: %1=name ("Horn"), %2=transposition ("C alto"). Example: "Horn in C alto"
57-
return muse::qtrc("notation", "%1 in %2", "Transposing instrument displayed in the score")
58-
.arg(instrumentName, trait.name);
59-
}
60-
61-
return instrumentName; // Example: "Flute"
62-
}
63-
6451
NotationParts::NotationParts(IGetScore* getScore, INotationInteractionPtr interaction, INotationUndoStackPtr undoStack)
6552
: m_getScore(getScore), m_undoStack(undoStack), m_interaction(interaction)
6653
{

0 commit comments

Comments
 (0)