[cleanup] Remove unused function in SharedStringAccessGuardIfNeeded

Change-Id: Ifad7bbafc8b7c7ff8cf9140b9227cb9c67370fcf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2637856
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72162}
This commit is contained in:
Georg Neis 2021-01-19 14:54:19 +01:00 committed by Commit Bot
parent 2d576e824d
commit aac9d77a87

View File

@ -62,8 +62,6 @@ class V8_NODISCARD SharedStringAccessGuardIfNeeded {
}
#endif
static bool IsNeeded(Isolate* isolate) { return false; }
static bool IsNeeded(LocalIsolate* local_isolate) {
// TODO(leszeks): Remove the nullptr check for local_isolate.
return local_isolate && !local_isolate->heap()->is_main_thread();