diff --git a/lib/modules/platform/github/api-cache.spec.ts b/lib/modules/platform/github/api-cache.spec.ts index 2c831ed17f5263..007145f1c6eeba 100644 --- a/lib/modules/platform/github/api-cache.spec.ts +++ b/lib/modules/platform/github/api-cache.spec.ts @@ -205,23 +205,4 @@ describe('modules/platform/github/api-cache', () => { expect(needNextPage).toBeFalse(); }); }); - - describe('etag', () => { - it('returns null', () => { - const apiCache = new ApiCache({ items: {} }); - expect(apiCache.etag).toBeNull(); - }); - - it('sets and retrieves non-null value', () => { - const apiCache = new ApiCache({ items: {} }); - apiCache.etag = 'foobar'; - expect(apiCache.etag).toBe('foobar'); - }); - - it('deletes value for null parameter', () => { - const apiCache = new ApiCache({ items: {} }); - apiCache.etag = null; - expect(apiCache.etag).toBeNull(); - }); - }); }); diff --git a/lib/modules/platform/github/api-cache.ts b/lib/modules/platform/github/api-cache.ts index 016ddd7a75968f..12fe1ca9002b3d 100644 --- a/lib/modules/platform/github/api-cache.ts +++ b/lib/modules/platform/github/api-cache.ts @@ -5,18 +5,6 @@ import type { ApiPageCache, ApiPageItem } from './types'; export class ApiCache { constructor(private cache: ApiPageCache) {} - get etag(): string | null { - return this.cache.etag ?? null; - } - - set etag(value: string | null) { - if (value === null) { - delete this.cache.etag; - } else { - this.cache.etag = value; - } - } - /** * @returns Date formatted to use in HTTP headers */ diff --git a/lib/modules/platform/github/types.ts b/lib/modules/platform/github/types.ts index e790de784f9306..86fdc330c622e7 100644 --- a/lib/modules/platform/github/types.ts +++ b/lib/modules/platform/github/types.ts @@ -145,5 +145,4 @@ export interface ApiPageItem { export interface ApiPageCache { items: Record; lastModified?: string; - etag?: string; }