Skip to content

Commit

Permalink
chore: remove unused method leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwashbrook committed Oct 10, 2024
1 parent 8c81c74 commit e454a6a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Dfe.PlanTech.Infrastructure.Data/CmsDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,4 @@ public async Task<List<T>> ToListAsync<T>(IQueryable<T> queryable, CancellationT
return await _queryCacher.GetOrCreateAsyncWithCache(key, queryable,
(q, ctoken) => q.FirstOrDefaultAsync(ctoken), cancellationToken);
}

public string? GetSlugForButtonWithEntryReferenceDbEntity(string linkToEntryId)
{
return Set<QuestionDbEntity>().Where(q => q.Id == linkToEntryId).Select(q => q.Slug).FirstOrDefault() ?? Set<PageDbEntity>().Where(q => q.Id == linkToEntryId).Select(q => q.Slug).FirstOrDefault();
}
}

0 comments on commit e454a6a

Please sign in to comment.