Skip to content

Commit ea0dc3b

Browse files
committed
refactor: Remove old formatting comments
1 parent a0101ef commit ea0dc3b

File tree

11 files changed

+0
-23
lines changed

11 files changed

+0
-23
lines changed

src/misc/dbus.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ QDBusArgument &operator<<(QDBusArgument &arg, const std::string &s);
2222
*/
2323
const QDBusArgument &operator>>(const QDBusArgument &arg, std::string &s);
2424

25-
// *INDENT-OFF*
2625
/*!
2726
* Operator for streaming enums to QDBusArgument.
2827
*/

src/misc/dictionary.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,12 @@ namespace swift::misc
7272
/*!
7373
* Associative container with value semantics, chooses a sensible default implementation container type.
7474
*/
75-
// *INDENT-OFF*
7675
template <class Key, class Value, template <class...> class Impl = TDefaultAssociativeType>
7776
class CDictionary :
7877
public mixin::DBusOperators<CDictionary<Key, Value, Impl>>,
7978
public mixin::DataStreamOperators<CDictionary<Key, Value, Impl>>,
8079
public mixin::JsonOperators<CDictionary<Key, Value, Impl>>,
8180
public mixin::String<CDictionary<Key, Value, Impl>>
82-
// *INDENT-ON*
8381
{
8482
//! \copydoc swift::misc::CValueObject::compare
8583
friend int compare(const CDictionary &a, const CDictionary &b)

src/misc/geo/coordinategeodetic.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ namespace swift::misc::geo
237237
int CCoordinateGeodetic::clampVector()
238238
{
239239
int c = 0;
240-
// *INDENT-OFF*
241240
if (m_x < -1.0)
242241
{
243242
m_x = -1.0;
@@ -268,7 +267,6 @@ namespace swift::misc::geo
268267
m_z = 1.0;
269268
c++;
270269
}
271-
// *INDENT-ON*
272270
return c;
273271
}
274272

src/misc/metaclass.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
//! \endcond
4343

44-
// *INDENT-OFF*
4544
/*!
4645
* Macro to define a nested metaclass that describes the attributes of its
4746
* enclosing class. Use in the private section of the class.
@@ -80,7 +79,6 @@
8079
*/
8180
#define SWIFT_METAMEMBER_NAMED(MEMBER, NAME, ...) \
8281
makeMetaMember(&Class::m_##MEMBER, NAME SWIFT_TRAILING_VA_ARGS(__VA_ARGS__))
83-
// *INDENT-ON*
8482

8583
//! std::string qHash
8684
inline size_t qHash(const std::string &key, uint seed) { return qHash(QString::fromStdString(key), seed); }

src/misc/mixin/mixindbus.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,13 @@ namespace swift::misc
174174
void DBusByMetaClass<Derived, Tags...>::baseUnmarshall(CEmpty *, const QDBusArgument &)
175175
{}
176176

177-
// *INDENT-OFF*
178177
/*!
179178
* When a derived class and a base class both inherit from mixin::DBusByTuple,
180179
* the derived class uses this macro to disambiguate the inherited members.
181180
*/
182181
#define SWIFT_MISC_DECLARE_USING_MIXIN_DBUS(DERIVED, ...) \
183182
using ::swift::misc::mixin::DBusByMetaClass<DERIVED SWIFT_TRAILING_VA_ARGS(__VA_ARGS__)>::marshallToDbus; \
184183
using ::swift::misc::mixin::DBusByMetaClass<DERIVED SWIFT_TRAILING_VA_ARGS(__VA_ARGS__)>::unmarshallFromDbus;
185-
// *INDENT-ON*
186184

187185
} // namespace mixin
188186
} // namespace swift::misc

src/misc/mixin/mixinindex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,12 @@ namespace swift::misc
147147
* When a derived class and a base class both inherit from mixin::Index,
148148
* the derived class uses this macro to disambiguate the inherited members.
149149
*/
150-
// *INDENT-OFF*
151150
#define SWIFT_MISC_DECLARE_USING_MIXIN_INDEX(DERIVED) \
152151
using ::swift::misc::mixin::Index<DERIVED>::apply; \
153152
using ::swift::misc::mixin::Index<DERIVED>::setPropertyByIndex; \
154153
using ::swift::misc::mixin::Index<DERIVED>::propertyByIndex; \
155154
using ::swift::misc::mixin::Index<DERIVED>::comparePropertyByIndex; \
156155
using ::swift::misc::mixin::Index<DERIVED>::equalsPropertyByIndex;
157-
// *INDENT-ON*
158156

159157
template <class Derived>
160158
void Index<Derived>::setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)

src/misc/mixin/mixinmetatype.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ namespace swift::misc
103103
return false;
104104
}
105105

106-
// *INDENT-OFF*
107106
/*!
108107
* When a derived class and a base class both inherit from mixin::MetaType,
109108
* the derived class uses this macro to disambiguate the inherited members.
@@ -113,7 +112,6 @@ namespace swift::misc
113112
using ::swift::misc::mixin::MetaType<DERIVED>::getMetaTypeId; \
114113
using ::swift::misc::mixin::MetaType<DERIVED>::getClassName; \
115114
using ::swift::misc::mixin::MetaType<DERIVED>::isA;
116-
// *INDENT-ON*
117115

118116
} // namespace mixin
119117
} // namespace swift::misc

src/misc/mixin/mixinstring.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ namespace swift::misc::mixin
100100
return static_cast<Derived *>(this);
101101
}
102102

103-
// *INDENT-OFF*
104103
/*!
105104
* When a derived class and a base class both inherit from mixin::String,
106105
* the derived class uses this macro to disambiguate the inherited members.
@@ -109,7 +108,6 @@ namespace swift::misc::mixin
109108
using ::swift::misc::mixin::String<DERIVED>::toQString; \
110109
using ::swift::misc::mixin::String<DERIVED>::toStdString; \
111110
using ::swift::misc::mixin::String<DERIVED>::stringForStreaming;
112-
// *INDENT-ON*
113111
} // namespace swift::misc::mixin
114112

115113
#endif // SWIFT_MISC_MIXIN_MIXINSTRING_H

src/misc/simulation/interpolation/interpolatorspline.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ namespace swift::misc::simulation
2525
template <size_t N>
2626
std::array<double, N> solveTridiagonal(std::array<std::array<double, N>, N> &matrix, std::array<double, N> &d)
2727
{
28-
// *INDENT-OFF*
2928
const auto a = [&matrix](size_t i) -> double & { return matrix[i][i - 1]; }; // subdiagonal
3029
const auto b = [&matrix](size_t i) -> double & { return matrix[i][i]; }; // main diagonal
3130
const auto c = [&matrix](size_t i) -> double & { return matrix[i][i + 1]; }; // superdiagonal
@@ -47,7 +46,6 @@ namespace swift::misc::simulation
4746
d[it] -= c(it) * d[it + 1];
4847
}
4948
return d;
50-
// *INDENT-ON*
5149
}
5250

5351
//! \private Linear equation expressed as tridiagonal matrix.
@@ -59,7 +57,6 @@ namespace swift::misc::simulation
5957
std::array<std::array<double, N>, N> a { {} };
6058
std::array<double, N> b { {} };
6159

62-
// *INDENT-OFF*
6360
a[0][0] = 2.0 / (x[1] - x[0]);
6461
a[0][1] = 1.0 / (x[1] - x[0]);
6562
b[0] = 3.0 * (y[1] - y[0]) / ((x[1] - x[0]) * (x[1] - x[0]));
@@ -76,7 +73,6 @@ namespace swift::misc::simulation
7673
b[i] = 3.0 * (y[i] - y[i - 1]) / ((x[i] - x[i - 1]) * (x[i] - x[i - 1])) +
7774
3.0 * (y[i + 1] - y[i]) / ((x[i + 1] - x[i]) * (x[i + 1] - x[i]));
7875
}
79-
// *INDENT-ON*
8076

8177
solveTridiagonal(a, b);
8278
return b;

src/xswiftbus/traffic.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ namespace XSwiftBus
5858

5959
CTraffic *CTraffic::s_instance = nullptr;
6060

61-
// *INDENT-OFF*
6261
CTraffic::CTraffic(CSettingsProvider *settingsProvider)
6362
: CDBusObject(settingsProvider),
6463
m_followPlaneViewNextCommand("org/swift-project/xswiftbus/follow_next_plane",
@@ -75,7 +74,6 @@ namespace XSwiftBus
7574
// init labels
7675
this->setDrawingLabels(this->getSettings().isDrawingLabels());
7776
}
78-
// *INDENT-ON*
7977

8078
CTraffic::~CTraffic()
8179
{

0 commit comments

Comments
 (0)