Skip to content

Commit 0093ab3

Browse files
committed
refactor: remove unused warnOnLegacyPackageId parameter from TryFindEmbeddedServerSource
1 parent f5613c6 commit 0093ab3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UnityMcpBridge/Editor/Helpers/ServerPathResolver.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class ServerPathResolver
1212
/// or common development locations. Returns true if found and sets srcPath to the folder
1313
/// containing server.py.
1414
/// </summary>
15-
public static bool TryFindEmbeddedServerSource(out string srcPath, bool warnOnLegacyPackageId = true)
15+
public static bool TryFindEmbeddedServerSource(out string srcPath)
1616
{
1717
// 1) Repo development layouts commonly used alongside this package
1818
try
@@ -43,7 +43,7 @@ public static bool TryFindEmbeddedServerSource(out string srcPath, bool warnOnLe
4343
var owner = UnityEditor.PackageManager.PackageInfo.FindForAssembly(typeof(ServerPathResolver).Assembly);
4444
if (owner != null)
4545
{
46-
if (TryResolveWithinPackage(owner, out srcPath, warnOnLegacyPackageId))
46+
if (TryResolveWithinPackage(owner, out srcPath))
4747
{
4848
return true;
4949
}
@@ -52,7 +52,7 @@ public static bool TryFindEmbeddedServerSource(out string srcPath, bool warnOnLe
5252
// Secondary: scan all registered packages locally
5353
foreach (var p in UnityEditor.PackageManager.PackageInfo.GetAllRegisteredPackages())
5454
{
55-
if (TryResolveWithinPackage(p, out srcPath, warnOnLegacyPackageId))
55+
if (TryResolveWithinPackage(p, out srcPath))
5656
{
5757
return true;
5858
}
@@ -65,7 +65,7 @@ public static bool TryFindEmbeddedServerSource(out string srcPath, bool warnOnLe
6565
{
6666
foreach (var pkg in list.Result)
6767
{
68-
if (TryResolveWithinPackage(pkg, out srcPath, warnOnLegacyPackageId))
68+
if (TryResolveWithinPackage(pkg, out srcPath))
6969
{
7070
return true;
7171
}

0 commit comments

Comments
 (0)