Skip to content

Commit 6732d72

Browse files
Copilotelinor-fung
andauthored
Remove ApplicationContext::GetApplicationName() (#127597)
`ApplicationContext::GetApplicationName()` and its backing field `m_applicationName` were dead code — declared and defined but never called anywhere in the binder. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
1 parent c4244d9 commit 6732d72

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

src/coreclr/binder/inc/applicationcontext.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ namespace BINDER_SPACE
8484
~ApplicationContext();
8585
HRESULT Init();
8686

87-
inline SString &GetApplicationName();
88-
8987
HRESULT SetupBindingPaths(/* in */ SString &sTrustedPlatformAssemblies,
9088
/* in */ SString &sPlatformResourceRoots,
9189
/* in */ SString &sAppPaths,
@@ -108,7 +106,6 @@ namespace BINDER_SPACE
108106

109107
private:
110108
Volatile<LONG> m_cVersion;
111-
SString m_applicationName;
112109
ExecutionContext *m_pExecutionContext;
113110
FailureCache *m_pFailureCache;
114111
CRITSEC_COOKIE m_contextCS;

src/coreclr/binder/inc/applicationcontext.inl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ void ApplicationContext::IncrementVersion()
2424
InterlockedIncrement(&m_cVersion);
2525
}
2626

27-
SString &ApplicationContext::GetApplicationName()
28-
{
29-
return m_applicationName;
30-
}
31-
3227
ExecutionContext *ApplicationContext::GetExecutionContext()
3328
{
3429
return m_pExecutionContext;

0 commit comments

Comments
 (0)