Skip to content

Commit 05316c3

Browse files
committed
Remove unused mtDisabled argument
Signed-off-by: Bartłomiej Chmiel <bchmiel@antmicro.com>
1 parent a3ec35c commit 05316c3

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/V3Error.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ std::ostringstream& V3Error::v3errorPrep(V3ErrorCode code) VL_ACQUIRE(s().m_mute
290290
s().v3errorPrep(code);
291291
return v3errorStr();
292292
}
293-
std::ostringstream& V3Error::v3errorPrepFileLine(V3ErrorCode code, const char* file, int line,
294-
bool mtDisabledCodeUnit) VL_ACQUIRE(s().m_mutex) {
293+
std::ostringstream& V3Error::v3errorPrepFileLine(V3ErrorCode code, const char* file, int line)
294+
VL_ACQUIRE(s().m_mutex) {
295295
v3errorPrep(code) << file << ":" << std::dec << line << ": ";
296296
return v3errorStr();
297297
}

src/V3Error.h

+2-5
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,7 @@ class V3Error final {
529529
// Internals for v3error()/v3fatal() macros only
530530
// Error end takes the string stream to output, be careful to seek() as needed
531531
static std::ostringstream& v3errorPrep(V3ErrorCode code) VL_ACQUIRE(s().m_mutex);
532-
static std::ostringstream& v3errorPrepFileLine(V3ErrorCode code, const char* file, int line,
533-
bool mtDisabledCodeUnit)
532+
static std::ostringstream& v3errorPrepFileLine(V3ErrorCode code, const char* file, int line)
534533
VL_ACQUIRE(s().m_mutex);
535534
static std::ostringstream& v3errorStr() VL_REQUIRES(s().m_mutex);
536535
// static, but often overridden in classes.
@@ -570,9 +569,7 @@ void v3errorEndFatal(std::ostringstream& sstr)
570569
// Use this instead of fatal() to mention the source code line.
571570
#define v3fatalSrc(msg) \
572571
v3errorEndFatal(v3errorBuildMessage( \
573-
V3Error::v3errorPrepFileLine(V3ErrorCode::EC_FATALSRC, __FILE__, __LINE__, \
574-
VL_MT_DISABLED_CODE_UNIT_DEFINED), \
575-
msg))
572+
V3Error::v3errorPrepFileLine(V3ErrorCode::EC_FATALSRC, __FILE__, __LINE__), msg))
576573
// Use this when normal v3fatal is called in static method that overrides fileline.
577574
#define v3fatalStatic(msg) \
578575
::v3errorEndFatal(v3errorBuildMessage(V3Error::v3errorPrep(V3ErrorCode::EC_FATAL), msg))

0 commit comments

Comments
 (0)